package cn.sccl.dubbo.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.sccl.dubbo.service.HelloService;

public class Main {

	public static void main(String[] args) throws Exception {
		
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		HelloService helloService = (HelloService)applicationContext.getBean("helloService");
		String hello = helloService.sayHello("zhansan");
		System.out.println(hello);
	}

}
